v1.5.0#92
Conversation
- Replaced the direct button for creating a new diary with a dropdown menu that includes options for creating both a new diary and a new gist. - Added translations for "Create", "New diary", and "New gist" in Bengali language support.
- Integrated UnpublishedArticleNotice component to display a notice for unpublished articles. - Added ArticleDraftBylineLabel for drafts, enhancing user awareness of article status. - Updated Bengali translations for unpublished articles and related messages to improve localization.
- Removed the `next-themes` dependency and replaced it with a custom theme provider for better control over theme preferences. - Enhanced the `CommonProviders` component to support initial theme settings and migration from local storage. - Updated the `RootLayout` to include a theme initialization script and improved suspense handling for child components. - Refactored the `ThemeSwitcher` to utilize the new theme provider, ensuring consistent theme management across the application.
…ved article loading states - Expanded user profile data retrieval to include bio, designation, website URL, education, location, social links, skills, and verification status. - Updated ProfilePageAside component to display user skills. - Improved article loading experience in UserArticleFeed with error handling and empty state messaging. - Added Bengali translations for new article-related messages to enhance localization.
…loading states - Added additional user information fields to the profile page, including bio, designation, and social links. - Enhanced article loading states in UserArticleFeed with better error handling and messaging. - Updated translations for new profile-related content to support Bengali localization.
…g states - Added new fields to the user profile, including bio, designation, and social links. - Improved loading states in UserArticleFeed with enhanced error handling and messaging. - Updated translations for new profile-related content to support Bengali localization.
- Added a placeholder for user avatars when profile photos are not available. - Enhanced the UserItem component to conditionally render user information and ensure proper handling of undefined user data. - Updated the avatar image source logic for better reliability and user experience.
- Updated CHANGELOG.md to document new features including enhancements to NavbarActions, user profiles, and article handling. - Bumped version number in package.json to 1.5.0. - Added support for unpublished article notices and improved user avatar handling.
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (21)
📝 WalkthroughWalkthroughThis PR introduces GitHub issue management skills, version bumps to 1.5.0, removes Changes
Sequence Diagram(s)sequenceDiagram
participant Browser
participant RootLayout
participant RootProviders
participant ThemeProvider
participant DOM
Browser->>RootLayout: Initial page load
RootLayout->>RootLayout: Execute THEME_INIT_SCRIPT<br/>(before interactive)
RootLayout->>RootLayout: Check for theme cookie<br/>Migrate from localStorage if needed
RootLayout->>DOM: Set data-theme & colorScheme
RootLayout->>RootProviders: Render with Suspense
RootProviders->>RootProviders: Read theme cookie
RootProviders->>RootProviders: Parse theme preference
RootProviders->>ThemeProvider: Pass initialTheme & migrate flag
ThemeProvider->>ThemeProvider: Initialize theme state
ThemeProvider->>ThemeProvider: Subscribe to system<br/>dark-mode changes (if "system")
ThemeProvider->>DOM: Apply resolved theme
Browser->>ThemeProvider: User toggles theme
ThemeProvider->>ThemeProvider: Update theme state
ThemeProvider->>RootLayout: Call setThemePreference<br/>(server action)
RootLayout->>DOM: Set cookie
ThemeProvider->>DOM: Update data-theme & colorScheme
sequenceDiagram
participant User
participant ArticlePage
participant UnpublishedNotice
participant SessionProvider
participant DOM
User->>ArticlePage: Navigate to article
ArticlePage->>ArticlePage: Fetch article data
alt Article is published (publishedAt exists)
ArticlePage->>UnpublishedNotice: Render with publishedAt
UnpublishedNotice->>DOM: Return null (hidden)
ArticlePage->>DOM: Render published time
else Article is unpublished (publishedAt is null)
ArticlePage->>UnpublishedNotice: Render with publishedAt=null
UnpublishedNotice->>SessionProvider: Check current user session
alt User is article author
UnpublishedNotice->>DOM: Show "Draft" alert<br/>with author-specific message
else User is viewer
UnpublishedNotice->>DOM: Show "Draft" alert<br/>with viewer-specific message
end
ArticlePage->>DOM: Render ArticleDraftBylineLabel<br/>(instead of time)
end
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
v1.5.0 — 2026-04-01
✨ Features
🔧 Other Changes
Summary by CodeRabbit
New Features
Documentation
Improvements